package com.qidian.mes.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class DvMachineryType {//设备类型表
    private List<DvMachineryType> children;
    private Long machineTypeId;
    private String machineTypeCode;
    private String machineTypeName;
    private Long parentTypeId;
    private Integer ancestors;
    private String enableFlag;
    private String remark;
    private String createBy;
    private Date createTime;
    private String updateBy;
    private Date updateTime;
    private Long createTimeMillis;
    private Long modifyTimeMillis;

    public Long getCreateTimeMillis() {
        if (this.createTime != null) {
            return this.createTime.getTime();
        }
        return null;
    }
    public Long getModifyTimeMillis() {
        if (this.updateTime != null) {
            return this.updateTime.getTime();
        }
        return null;
    }
}
